package com.example.demo;

import java.util.List;

import lombok.Data;

@Data
public class Article implements Comparable<Article>{
	String id;
	int clapCount;
	String title;
	String uniqueSlug;
//	String content;
	List<Paragraph> paragraphs;
	String html;
	
	@Override
	public int compareTo(Article o) {
		if(clapCount==o.clapCount) {
			return 0;
		}
		return clapCount>o.clapCount?1:-1;
	}
}
